import getlink from "@/api/getapi.js"
let MyScspM = {
    state:{
        scsp:""
    },
    mutations:{
        UPSCSPDATA(state,payload){
            state.scsp=payload
        }
    },
    actions:{
        LINK_SCSP_DATA(conscsp,payload){
            // console.log(context)
            getlink(payload).then((ok)=>{
                console.log(ok.data.scsp,"scsp")
                conscsp.commit("UPSCSPDATA",ok.data.scsp)
            }).catch((err)=>{
                console.log(err)
            })
        }
    }
}

export default MyScspM;


// TvHotM 
